<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>住院通知</title>
<script type="text/javascript" src="static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="static/easyui/themes/metro/easyui.css"/>
<link rel="stylesheet" href="static/easyui/themes/icon.css"/>
</head>
<body>
	<script type="text/javascript">
		$(function(){
			//搜索通知单
			$("#notice_medicalcrad").searchbox({
				searcher:function(value,name){
					var applyid = value  //获取通知编号
					$.ajax({
		                url:"find-applyByid",
		                type:"post",
		                data:{'applyid':applyid},
		                dataType:"json",
		                success:function(data) {
		                    console.log(data.result);
		                    //判断长度为零就提示
		                    if(data.result.length == 0){
		                    	$.messager.confirm('Confirm', 
		    							'查无此人，请自主登记住院', 
		    							function(r){
		    					});
		                    	//清除文本框
						    	$('#form-addinfron').form('clear');
		                    }
		                    var t = data.result[0]['apply_time'];
		                    var times = comFormatDate(t);
		                    	
			                $("#infrom-time-input").textbox('setValue',times);
		                    //看诊号
		                    $("#look-id-input").textbox('setValue',data.result[0]['lookillness_id']);
		                    //病人姓名
		                    $("#sickname-input").textbox('setValue',data.result[0]['clinic_name']);
		                    //门诊医生
		                    $("#user-doctor-input").textbox('setValue',data.result[0]['user_name']);
		                    //门诊科室
		                    $("#section-input").textbox('setValue',data.result[0]['section_name']);
		                    //通知状态
		                    if(data.result[0]['apply_state']==0){
			                    $("#infrom-status-input").textbox('setValue',"未处理");
		                    } 
		                }
		            });
					
				}
			});
			
			//点击同意按钮修改通知状态
			$("#agree-inform").click(function(){
				$('#form-addinfron').form({    
				    url:'update-infromstatus',    
				    onSubmit: function(){    
				    }, 
				    //表单提交成功之后的数据
				    success:function(data){
				    	$.messager.show({
	                        title:'提示信息' , 
	                        msg:'同意成功！请拿着通知单去办理登记住院!'
	                    });
				    	 //刷新表格
				    	 $('#inform-dg').datagrid('reload');
				    	 //清除文本框
				    	// $('#form-addinfron').form('clear');
				    }    
				}).submit();
			});
			
			//取消按钮
			$("#noagree-inform").click(function(){
				//清除文本框
		    	 $('#form-addinfron').form('clear');
			});
			//自主新增登记的按钮
			$("#add-reg-comfirm").click(function(){
				$("#add-reghosp-win").window("open");
			});
			
			//登记窗口中的确定按钮
			$("#regsiter-comfrim").click(function(){
				$('#reg-form').form({
				    url:'add-hospregsiter',
				    onSubmit: function(){
				    	 if(!$('#reg-form').form('validate')){//调用validate方法校验
	                            $.messager.show({
	                                title:'提示信息' , 
	                                msg:'验证没有通过,不能提交表单!'
	                            });
	                            return false ;        //当表单验证不通过的时候 必须要return false 
	                     }
				    },
				    success:function(data){
				    	$('#reg-form').form("clear");//清空文本
				    }
				}).submit();
			});
			

			//初始化科室下拉表的数据
			$('#sections').combobox({   
	         	url:'init-hospsection',//数据源
	         	valueField: 'section_id',//实体类名字---主键id
		        textField: 'section_name',//需要显示在下拉框的实际内容
		        editable:false,
		        onSelect:function(row){
		        	//初始化医生
					$('#hospuserdoc').combobox({
						 url: "init-hospuserdoctor?sid="+row["section_id"],
						 valueField: 'user_id',//实体类名字---主键id
					     textField: 'user_name',//需要显示在下拉框的实际内容	
					     editable:false,
					     onLoadSuccess: function () {  //加载完成后,设置选中第一项
			                    var val = $(this).combobox("getData");
			                    for (var item in val[0]) {
			                        if (item == "user_id") {
			                        	//初始化数据默认选中第一个
			                            $(this).combobox("select", val[0][item]);
			                        }
			                    }
			             }
					});
					
					//护士初始化数据
					$('#infrom-hospnurse').combobox({   
			         	url:'init-hospusernurse?sid='+row["section_id"],//数据源
			         	valueField: 'user_id',//实体类名字---主键id
				        textField: 'user_name',//需要显示在下拉框的实际内容
				        editable:false,
			            panelHeight:'auto',//高度根据内容自动定
			            onLoadSuccess: function () {  //加载完成后,设置选中第一项
			                    var val = $(this).combobox("getData");
			                    for (var item in val[0]) {
			                        if (item == "user_id") {
			                        	//初始化数据默认选中第一个
			                            $(this).combobox("select", val[0][item]);
			                        }
			                    }
			             }
			         });
			
					//病房初始化
					$('#infrom-room').combobox({
    					 url: "init-sickroombed?sid="+row["section_id"],
    					 valueField: 'sickroom_id',//实体类名字---主键id
    				     textField: 'sickroom_name',//需要显示在下拉框的实际内容
    				     editable:false,
    				     onHidePanel: function(){
    				    	    var val = $(this).combobox("getData");
    		                    for (var item in val[0]) {
    		                        if (item == "sickroom_id") {
    		                        	//初始化数据默认选中第一个
    		                            $(this).combobox("select", val[0][item]);
    		                        }
    		                    }
    			            	//床位号的下拉列表
    						     $("#infrom-bed").combobox("setValue",'');
    						     var roomid = $('#infrom-room').combobox('getValue'); 
    							 $.ajax({
	    							 type: "Post",
	    							 url: "select-roombedno?roomid="+roomid,
	    							 cache: false,
	    							 dataType : "json",
	    							 success: function(data){
	    								 $("#infrom-bed").combobox("loadData",data);
	    								 }
    							 }); 
    					  }
					})	
				}
			}); 
			
			//床位初始化
			$('#infrom-bed').combobox({   
	         	//url:'init-bedno',//数据源
	         	valueField: 'bed_id',//实体类名字---主键id
		        textField: 'bed_no',//需要显示在下拉框的实际内容
		        editable:false,
	            panelHeight:'auto',//高度根据内容自动定
	            onLoadSuccess: function () {  //加载完成后,设置选中第一项
	                    var val = $(this).combobox("getData");
	                    for (var item in val[0]) {
	                        if (item == "bed_id") {
	                        	//初始化数据默认选中第一个
	                            $(this).combobox("select", val[0][item]);
	                        }
	                    }
	             }
 
	            });
			
			
			
			
			
			//住院申请单的信息
			$('#inform-dg').datagrid({
			    url:'hosp-applyrecordall',
			    method:"Post",
			    pagination:true,
 			    pageNumber:1,
 			    pageSize:5,
 			    pageList:[5,10,15],
			    columns:[[
					{field:'apply_id',title:'通知号',width:149},
					{field:'clinic_name',title:'姓名',width:149},
					{field:'clinic_sex',title:'性别',width:130},
					{field:'clinic_age',title:'年龄',width:130},
					{field:'applyhosptital_user',title:'通知人',width:149},
					{field:'apply_time',formatter:comFormatDate,title:'通知时间',width:190},
					{field:'apply_state',title:'通知状态',width:149,
						formatter: function(value,row,index){
							if (value==1){
								return "已同意";
							} 
						}
					}
			    ]]
			});
			
			//打印小票
			$("#printreceipt").click(function(){
				$.ajax({
					 type: "Post",
					 url: "find-receipt",
					 cache: false,
					 dataType : "json",
					 success: function(data){
						 console.log("数据："+data[0]);
						 $("#ticket-agrren-win").window("open");
						 $("#applyno").text(data[0]['apply_id']);
						 var t2 = data[0]['apply_time'];
		                 var times2 = comFormatDate(t2);
						 $("#repicedate").text(times2);
						 $("#usernameid").text(data[0]['clinic_name']);
						 $("#ticket_usex").text(data[0]['clinic_sex']);
						 $("#user-doctor-input1").text(data[0]['user_name']);
						 $("#sectioninput").text(data[0]['section_name']);
						 $("#lookid").text(data[0]['lookillness_id']);
						 $("#people").text(data[0]['applyhosptital_user']);
					 }
				}); 
				
			});
			
		});
		
		//验证
		$.extend($.fn.textbox.defaults.rules, {
			//姓名验证
			txtName: {
		        validator: function(value, param) {
		            var reg = /^[\u4e00-\u9fa5]+$/i;
		            return reg.test(value);
		        },
		        message: "姓名请输入中文"
		    },
		    //身份证号验证
		    cradsumAge:{
		        validator: function(value, param) {
					var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
					if(reg.test(value)==true){
						 //获取身份证的的name的名字
						var inputValueName = $(this).next("input").attr("name");
						if(inputValueName == "clinicIdnumber"){
							inform_crad = this.value;//获取身份证
						}
					    //截取年计算年龄
					    var c_year=inform_crad.substring(6,10);
					    //获取系统的年份
					    var curr_time=new Date();   
						var curr_year=curr_time.getFullYear();
						//计算
					    var clinics_age = curr_year - c_year;
					    
					    $.ajax({
							url:'check-idcard',
							type:'post',
							data:{
								clinic_idnumber:inform_crad
							},
							success:function(data){
								console.log("data:"+data);
								if(parseInt(data)==1){
									$(".window-tishi").text("身份证号已存在,请重新输入!");
									$("#identity").textbox("setValue","");
						    		$("#saveclinic-win").window('open');
							    	//三秒之后自动消失
								    setTimeout(function(){
								    	 $("#saveclinic-win").window('close');
									}, 3000);	
								}
								
								if(parseInt(data)==2){
									 //赋值给年龄
								    $('#inform-age').textbox('setValue',clinics_age);
								}
							}
						});
		
					   
					
					    //截取倒数第二个数，如果为1，性别为男，如果为2，性别为女
					    var crad_sex=inform_crad.substring(16,17);
					    if(crad_sex==1){
					    	//赋值给性别
						    $("#inform-sex").textbox('setValue',"男");
					    }else if(crad_sex==2){
					    	$("#inform-sex").textbox('setValue',"女");
					    }
					    
					    return reg.test(value);
					}
		         
		        },
		        message: "请输入正确的身份证号"
		    },
		    //手机号码验证
		    phone:{
		    	validator:function(value,param){
		    		 var regTel=/(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;
		    		 return regTel.test(value);
		    	},
		    	message:"请输入正确的手机号"
		    },
		    //地址验证
		    address:{
		    	validator: function(value, param) {
		            var addressreg = /^[\u4e00-\u9fa5]+$/i;
		            return addressreg.test(value);
		        },
		        message: "请输入正确的地址"
		    }
	    });//自定义验证
		
	    
	    function infromsearcher(value,name){
	    	var infromid="";
			var cname="";
			if(name=="姓名查询"){
				cname=value;
			}else if(name=="通知单查询"){
				infromid = value;
			}
			$('#inform-dg').datagrid({
				 url:'hosp-applyrecordall',
				 queryParams:{
			    	clinicname:cname,
			    	applyid:infromid
			    },
			    method:"Post",
			    pagination:true,
 			    pageNumber:1,
 			    pageSize:5,
 			    pageList:[5,10,15],
			    columns:[[
					{field:'apply_id',title:'通知号',width:149},
					{field:'clinic_name',title:'姓名',width:149},
					{field:'clinic_sex',title:'性别',width:130},
					{field:'clinic_age',title:'年龄',width:130},
					{field:'applyhosptital_user',title:'通知人',width:149},
					{field:'apply_time',formatter:comFormatDate,title:'通知时间',width:190},
					{field:'apply_state',title:'通知状态',width:149,
						formatter: function(value,row,index){
							if (value==1){
								return "已同意";
							} 
						}
					}
			    ]]
			    
			});
	    }
	    
	    
		/**
		 * 时间格式YYY-mm-dd hh:mm:ss
		 */
		function comFormatDate(date) {
			var day = new Date(date); 
			var Year = 0; 
			var Month = 0; 
			var Day = 0; 
			var CurrentDate = ""; 
			//初始化时间 
			Year= day.getFullYear();
			Month= day.getMonth()+1; 
			Day = day.getDate(); 
			Hour = day.getHours(); 
			 Minute = day.getMinutes(); 
			 Second = day.getSeconds(); 
			CurrentDate += Year + "-"; 
			if (Month >= 10 ) { 
				CurrentDate += Month + "-"; 
			}else { 
				CurrentDate += "0" + Month + "-"; 
			} 
			if (Day >= 10 ) { 
				CurrentDate += Day ; 
			}else { 
				CurrentDate += "0" + Day ; 
			} 
			if(Hour>=10){
				CurrentDate +=" "+Hour;
			}else{
				CurrentDate +=" "+"0"+Hour;
			}
			if(Minute>=10){
				CurrentDate +=":"+Minute;
			}else{
				CurrentDate +=":"+"0"+Minute;
			}
			if(Second>=10){
				CurrentDate +=":"+Second;
			}else{
				CurrentDate +=":"+"0"+Second;
			}
			return CurrentDate; 
		}

		
	</script>
	
	
	<!-- 住院申请单 -->
	<fieldset style="border:1px solid #A6A6A6;border-radius:6px;width:1048px;margin: 0px auto;margin-top: 15px;">
		<legend style="font-size:15px;">住院通知单</legend>
		<form id="form-addinfron" method="post">
			<p>
				<a style="margin-left: 80px;">
				<input id="notice_medicalcrad" name="apply_id" class="easyui-searchbox" data-options="label:'住院通知号',height:30" style="width:200px"></input>
				</a>
				<a style="margin-left: 120px;">
					<input id="look-id-input" class="easyui-textbox" data-options="label:'看诊号',height:30" style="width:200px"></input>
				</a>
				<a style="margin-left: 120px;"><input id="infrom-time-input" class="easyui-textbox" data-options="label:'通知时间',height:30,width:230"></a>
			</p>
			<p>				
				<a style="margin-left: 80px;"><input id="sickname-input" class="easyui-textbox" data-options="label:'病人姓名',height:30,width:200"></a>
				<a style="margin-left: 120px;"><input id="user-doctor-input" class="easyui-textbox" data-options="label:'门诊医生',height:30,width:200"></a>
				<a style="margin-left: 120px;"><input id="section-input" class="easyui-textbox" data-options="label:'门诊科室',height:30,width:230"></a>
				<a><input id="infrom-status-input" name="infrom_status" type="hidden" class="easyui-textbox"></a>
	
			</p>
			
			<p>
				<a style="margin-left: 80px;margin-top: 20px;width:100px;height:30px;border-radius:6px;" id="agree-inform" class="easyui-linkbutton" iconCls="icon-ok">同意</a>
			    <a style="width:100px;height:30px;border-radius:6px;" id="noagree-inform" class="addinform easyui-linkbutton" iconCls="icon-cancel">取消</a>
			    <a style="width:120px;height:30px;border-radius:6px;" id="add-reg-comfirm" class="addinform easyui-linkbutton" iconCls="icon-add" data-options="" >新增自主登记</a>
			   	<a style="width:110px;height:30px;border-radius:6px;" id="printreceipt" class="addinform easyui-linkbutton" iconCls="icon-check" data-options="" >打印小票</a>
			   
			</p>
			
		</form>
	</fieldset>
	
	<fieldset class="infrom-record" style="border:1px solid #A6A6A6;border-radius:6px;width:1048px;height:250px;;margin: 0px auto;margin-top: 15px;">
		<legend style="font-size:15px;">通知单记录</legend>
		<!-- 搜索框 -->
		<input id="infromdan" class="easyui-searchbox" style="width:300px"
		    data-options="searcher:infromsearcher,prompt:'Please Input Value',menu:'#infrom-div'"></input>
		<div id="infrom-div" style="width:120px">
		    <div data-options="iconCls:'icon-ok'">姓名查询</div>
		    <div>通知单查询</div>
		</div>
		<table id="inform-dg" style="height:200px;" class="inform-tab easyui-datagrid" 
		data-options="fitColumns:false,singleSelect:false">
		</table>
		
	</fieldset>
	
	<!-- 新增登记的窗口 -->
	<div id="add-reghosp-win" class="easyui-window" title="新增登记" style="width:720px;height:430px"
	    data-options="iconCls:'icon-save',closed:true,modal:true,shadow:true,resizable:false,collapsible:false,minimizable:false,maximizable:false">
		<form id="reg-form" method="post" onsubmit="return">
			<!-- 布局 -->
			<div id="cc" class="easyui-layout" style="width:700px;height:390px;">
			    <div data-options="region:'west',title:'病人信息',collapsible:false" style="width:350px;">
				     
				     <div class="" style="margin-top: 30px;">
		                 <a style="margin-left: 15px;">
		                   	<span style="margin-right:7px;">医疗卡号</span>
							<input id="inform_medicalcrad" name="cliniccardId" class="easyui-textbox" value="${clinicid }" data-options="width:250,height:30,required:true">
		                 </a>
		             </div>
		             <div class="" style="margin-top: 30px;">
		             	<a style="margin-left: 15px;">
		                	<span style="margin-right:7px;">身份证号</span>
		                	<input id="identity" name="clinicIdnumber" class="easyui-textbox"  data-options="width:150,height:30,required:true,validType:['cradsumAge']"></input>
		               		<span>
		               		    <input  type="hidden" name="" class="textbox-value"  value></input>
		               		</span>
			            </a>
			            <a>
						    <span style="margin-right:7px;">年龄</span>
		                    <input id="inform-age" name="clinicAge" class="easyui-textbox" type="text" style="width:50px; height: 28px;line-height: 28px;border-radius: 5px;"></input>
						</a>
			         </div>
		             <div class="" style="margin-top: 30px;">
		                 <a style="margin-left: 15px;">
		                   	<span style="margin-right:7px;">病人姓名</span>
							<input id="lookdoctor-sickuname" name="clinicName" class="easyui-textbox"  data-options="width:150,height:30,required:true,validType:['txtName']">
		                 </a>
		                 <a>
							<span style="margin-right:7px;">性别</span>
							<input id="inform-sex" name="clinicSex" class="easyui-textbox" type="text" style="width:50px; height: 28px;line-height: 28px;border-radius: 5px;"></input>
							
						</a>
		             </div>
		             <div class="" style="margin-top: 30px;">
		       			<a style="margin-left: 15px;">
		                	<span style="margin-right:7px;">电话号码</span>
		                    <input id="inform_tel" name="clinicTel" class="easyui-textbox"  data-options="width:250,height:30,required:true,validType:['phone']"></input>
		               </a>
						
			              
		             </div>
		             <div class="" style="margin-top: 30px;margin-bottom: 15px;">
		                <a style="margin-left:15px;">
		                	<span style="margin-right:7px;">家庭地址</span>
		                    <input id="inform_address" name="clinicAddress" class="easyui-textbox"  data-options="width:250,height:30,required:true,validType:['address']"></input>
		              	</a>
		            </div>
			    </div>
			    <div data-options="region:'center',title:'登记信息'" style="winth:255px;">

		            <div class="" style="margin-top: 30px;">
		                 <a style="margin-left: 15px;">
		                   	<span style="margin-right:7px;">住院号</span>
							<input id="inform_medicalcrad" name="hospId" value="${hospid }" class="easyui-textbox"  data-options="width:270,height:30,required:true">
		                 </a>
		             </div>
		             <div class="" style="margin-top: 30px;">
		             	<a style="margin-left: 15px;">
						    <span style="margin-right:7px;">科室号</span>
						    <select id="sections" class="easyui-combobox" data-options="height:30" name="status" style="width:100px">
							</select>	
						</a>
		             	<a >
		                	<span style="margin-right:7px;">住院医生</span>
		                	<select id="hospuserdoc" class="easyui-combobox" data-options="height:30" name="hospdoctorname" style="width:100px">
							</select>
			            </a>
			            
			         </div>
		             <div class="" style="margin-top: 30px;">
		                <a style="margin-left:15px;">
		                    <span style="margin-right:7px;">病房号</span>
							<span>
								<select id="infrom-room" class="easyui-combobox" data-options="height:30" name="sickroomId" style="width:100px">
							    </select>	
							</span>				
						</a>
		                 <a style="margin-left:25px;">
							<span style="margin-right:7px;">床号</span>
							<span class="lookdoctor-lusexbox">
								<select id="infrom-bed" class="easyui-combobox" data-options="height:30" name="bedId" style="width:100px">
								</select>	
							</span>
						</a>
		             </div>
		             <div class="" style="margin-top: 30px;">
		                 <a style="margin-left: 15px;">
		                   	<span style="margin-right:7px;">护士名</span>
		                   	<select id="infrom-hospnurse" class="easyui-combobox" data-options="height:30" name="hospnursename" style="width:100px">
							</select>
		                 </a>
		       			<a>
		                	<span style="margin-right:7px;">押金余额</span>
		                    <input id="inform_tel" name="cashMoney" value="500" class="easyui-textbox"  data-options="width:100,height:30,required:true"></input>
		               </a>
					   
			              
		             </div>
		             <div class="" style="margin-top: 30px;margin-bottom: 15px;">
		               <a style="margin-left:15px;">
		                	<span style="margin-right:7px;">登记员</span>
		                    <input id="inform_tel" name="hospPeople" value="${user.userName}" class="easyui-textbox"  data-options="width:80,height:30,required:true"></input>
		               </a>
		                <a>
		                	<span style="margin-right:7px;">时间</span>
		                    <input name="hospTime" class="easyui-textbox"  value="${time }" data-options="width:150,height:30,required:true"></input>
		              	</a>
		            </div>
			    </div>
			    <div data-options="region:'south'" style="height:40px;">
			         <a id="regsiter-comfrim" class="easyui-linkbutton" data-options="fit:true" iconCls="icon-ok" >确定</a>
			    </div>
			</div>
		</form>	
	</div>
	
	<!-- 弹框提示 -->
    <div id="warminginfrom-win" class="easyui-window"  title="提示框" style="width:300px;height:156px"
    data-options="iconCls:'icon-save',modal:true,resizable:false,collapsible:false,maximizable:false,minimizable:false,closed:true">
          <p class="window-green" style=" margin-left: 72px;font-size: 16px;margin-top: 47px;">
          </p>
    </div> 
    
     <!--   打印小票 -->
     <div id="ticket-agrren-win" class="easyui-window" title="打印小票" style="width:530px;height:400px"
	    data-options="iconCls:'icon-save',closed:true,modal:true,shadow:true,resizable:false,collapsible:false,minimizable:false,maximizable:false">
		     <p style="font-size:20px;text-align:center;">XXX医院住院通知单</p>
		     <a style="margin-left:20px;">通知单号:
		          <a id="applyno" style="margin-left:10px;font-size:17px;color:red;font-weight:bold;"></a>
		     </a>
		     <a style="margin-left:34%;">票据日期:
		          <a id="repicedate"></a>
		      </a>
		    <div style="font-size: 16px;margin-left: 20px;margin-top:35px;">
		         <span style="margin-right:7px;">患者姓名</span>
		         <a id="usernameid"style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a>
		         <span style="margin-right:7px;margin-left: 50px;">患者性别</span>
		         <a   id="ticket_usex" style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a> 
		    </div>
		    <div style="font-size: 16px;margin-left: 20px;margin-top:25px;">
		         <span style="margin-right:7px;">门诊医生</span>
		         <a   id="user-doctor-input1" style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a>
		         <span style="margin-right:7px;margin-left: 50px;">门诊科室</span>
		         <a id="sectioninput"style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a>   
		    </div>
		    <div style="font-size: 16px;margin-left: 20px;margin-top:25px;">
		         <span style="margin-right:7px;">看诊号</span>
		         <a   id="lookid" style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a>
		         <span style="margin-right:7px;margin-left: 65px;">经办人</span>
		         <a id="people" style="border-bottom:1px solid #bbb;display: inline-block;width:125px;text-align:center;"></a>
		    </div>
		     

      </div>
</body>
</html>